package com.android.antelopeapp.constant;

/**
 * <p>Api 访问路径</p>
 * User: <a href="mailto:xinyuan.ymm@alibaba-inc.com">心远</a>
 * Date: 14/8/12
 * Time: 下午5:18
 */
public class ApiConfig {

    /**
     * 获取商品列表
     */
    public static final String GET_INDEX_BANNERS = "openApi/index/getBanners";

    /**
     * 获取商品详情
     */
    public static final String GET_ITEMS_DETAIL = "openApi/category/getItemDetail";

    /**
     * 获取商品列表
     */
    public static final String GET_INDEX_ITEMS = "openApi/index/getItems";

    /**
     * 获取父分类
     */
    public static final String GET_PARENT_CATEGORY = "openApi/category/getParentCategories";

    /**
     * 获取子分类
     */
    public static final String GET_CHILD_CATEGORY = "openApi/category/getChildCategories";

    /**
     * 获取搜索的商品列表(分类也属于搜索结果)
     */
    public static final String GET_SEARCH_ITEMS = "openApi/category/getItems";

    /**
     * URL 请求参数名称
     */
    public static final String PAGE_NAME = "page";
    public static final String PAGE_SIZE_NAME = "size";
    public static final String SERVER_KEY_NAME = "serverKey";
    public static final String TIME_STAMP_NAME = "timestamp";
    public static final String TIME_NAME = "time";
    public static final String IS_MOCK_NAME = "isMock";
    public static final String SIGN_NAME = "sign";
    public static final String CATEGORY_ID = "categoryId";/*父分类ID*/
    public static final String SUB_CATEGORY_ID = "subCategoryId";/*子分类ID*/

    public static final String SEARCH_TITLE = "title";
    public static final String SEARCH_KEYWORD = "keyword";
    public static final String SEARCH_SORT = "sort";

    public static final String ITEM_ID = "itemId";
    public static final String TAOBAO_ITEM_ID = "tbItemId";
    public static final String ID = "id";
    public static final String BUYER_IP = "buyerIp";

    /**商品按添加时间降序排列*/
    public final static String SORT_BY_CRTIME="sort=ctime,desc";


    /**通用参数*/
    public static final String START_POS = "page";

    /**请求文章参数*/
    public static final String RA_ID = "id";
    public static final String RA_TYPE_ID = "typeid";
    public static final String RA_START_POS="page";
    public static final String AFTER_TIME="after_time";
    /**添加评论参数*/
    public static final String RA_COMMENT_JSON="jComment";

    /**请求商品参数*/
    public static final String GOODS_START_POS="page";
    public static final String GOODS_PAGE_SIZE="size";
    public static final String GOODS_LINK = "link";

    /**请求美图参数*/
    /**美图的json对象名*/
    public static final String BPIC_BPIC = "jbpic";
    /**上传美图的key值*/
    public static final String TAG_IMAGE_UPLOAD_KEY = "share_pic";


    /**
     * 服务器信息
     * */
//    public static final String SERVER_HOST = "http://210.32.133.23:8080";
    public static final String SERVER_HOST = "http://outdoor-1.wx.jaeapp.com";
    public static final String SERVER_RESOURCE=SERVER_HOST;
    public static final String SERVER_HOME=SERVER_HOST;
    public static final String SERVER_API=SERVER_HOST+"/api";

    /**给提交评论*/
    public static final String REQUEST_APPEND_COMMENT = SERVER_API + "/comment/";

    /**
     * 请求信息
     * */
    /**请求文章内容*/
    public static final String REQUEST_CRAWL_TAOBAO="/crawl/commodity/taobao/";
    public static final String REQUEST_ARTICLE_DETAIL = SERVER_API + "/article/";
    /**请求文章列表*/
    public static final String REQUEST_ARTICLE_LIST = SERVER_API + "/articles/normal/";
    public static final String REQUEST_TOP_ARTICLE_LIST = SERVER_API + "/articles/top/";
    /**请求商品列表*/
    public static final String REQUEST_GOODS_LIST = SERVER_API + "/commodities/";
    /**请求某一分类商品列表*/
    public static final String REQUEST_GOODS_LIST_BY_TYPE = SERVER_API + "/commodities/search/type/{typeid}/";
    public static final String PARAM_TYPEID="{typeid}";
    /**请求商品分类列表**/
    public static final String REQUEST_GOODS_TYPES=SERVER_API+"/types/commodity/";
    /**解析url返回商品信息*/
    public static final String REQUEST_TAE_ITEM_INFO = SERVER_API + "/crawl/commodity/taobao/item/";

    /**上传美图**/
    public static final String UPLOAD_BEAUTY_PIC = SERVER_API+"/bpic/";
    /**获取美图列表*/
    public static final String REQUEST_BEAUTY_PIC_LIST = SERVER_API+"/bpics/";


    /**回复信息*/
    public static final String NOT_END = "not_end";
    public static final String TO_END = "end";
}